<template>
  <el-container>
    <el-aside width="auto">
      <nav-side :collapse="isCollapse"></nav-side>
    </el-aside>
    <el-container>
      <el-header>
        <nav-header v-model:collapse="isCollapse"></nav-header>
      </el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script setup lang="ts">
import { ref } from "vue";
import navHeader from '../src/navHeader/index.vue'  // 引入组件
import navSide from '../src/navSide/index.vue'
const isCollapse = ref(false);
</script>

<style scoped lang="scss">
.el-header{
  padding: 0;
  border-bottom: 1px solid #e4e7ed;
}
</style>
